.gallery-title {
    text-align: center;
    color: #333;
}

/* Estilos para los botones de filtro */
.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.filter-button {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 50px;
     margin-bottom: 30px;
}

.filter-button:hover {
    background-color: #ddd;
}

.filter-button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Estilos para la galería de imágenes - CON IMÁGENES MÁS GRANDES */
.image-gallery {
    display: grid;
    /* Se aumenta el tamaño mínimo de cada columna a 300px */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 30px; /* Se aumenta el espacio entre imágenes */
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se deforme */
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Estilos para el Modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    max-width: 50vw;
    max-height: 70vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Botones del Modal (Cerrar, Anterior, Siguiente) */
.close, .prev, .next {
    cursor: pointer;
    position: absolute;
    color: white;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    user-select: none;
}

.close {
    top: 20px;
    right: 35px;
    font-size: 50px;
}

.prev, .next {
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.3);
}

.prev {
    left: 10px;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

.close:hover, .prev:hover, .next:hover {
    color: #bbb;
}

.highlight-text-box {
    background: linear-gradient(135deg, #c5a92d 0%, #DCEDC8 100%); /* Degradado suave de verde */
    color: #333; /* Texto en gris oscuro */
    padding: 25px 35px; /* Espaciado interno */
    text-align: center; /* Centrar texto */
    font-size: 1.8em; /* Tamaño de fuente */
    font-weight: 600; /* Peso de fuente seminegrita */
    border-radius: 18px; /* Bordes redondeados */
    margin: 60px auto; /* Margen superior/inferior y centrado horizontalmente */
    max-width: 700px; /* Ancho máximo para que no ocupe todo el body */
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Fuentes modernas */
    line-height: 1.4; /* Altura de línea para legibilidad */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Sombra sutil */

    /* --- Propiedades para la animación moderna --- */
    opacity: 0; /* Inicia invisible */
    transform: translateY(20px) scale(0.95); /* Inicia un poco abajo y ligeramente más pequeño */
    /* Transición suave para todas las propiedades. El 'cubic-bezier' da un efecto elástico/dinámico */
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.highlight-text-box.is-visible {
    opacity: 1; /* Se vuelve visible */
    transform: translateY(0) scale(1); /* Vuelve a su posición y tamaño original */
}

/* Estilos para el párrafo dentro del cuadro */
.highlight-text-box p {
    margin: 0; /* Elimina el margen predeterminado del párrafo */
}




/* Para pantallas medianas (tabletas) */
@media (max-width: 768px) {
    .highlight-text-box {
        font-size: 1.4em;
        padding: 20px 25px;
        margin: 40px auto;
        max-width: 90%; /* Ocupa más espacio en pantallas pequeñas */
    }
}

/* Para pantallas pequeñas (móviles) */
@media (max-width: 480px) {
    .highlight-text-box {
        font-size: 1.1em;
        padding: 15px 20px;
        margin: 30px auto;
        border-radius: 12px; /* Bordes ligeramente menos redondeados */
    }
}